import request from '@/utils/request';

export async function getCustomComplaintByPage (params: any) {
    return request('/api/quality/getCustomComplaintByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addCustomComplaint (params: any) {
    return request('/api/quality/addCustomComplaint', {
    method: 'POST',
    data: params,
  });
}

export async function updateCustomComplaint (params: any) {
    return request('/api/quality/updateCustomComplaint', {
    method: 'POST',
    data: params,
  });
}

export async function delCustomComplaint (params: any) {
    return request('/api/quality/delCustomComplaint', {
    method: 'POST',
    data: params,
  });
}


export async function exportCustomComplaint(params: any) {
    return request('/api/quality/exportCustomComplaint', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getCustomComplaintByPage, addCustomComplaint, updateCustomComplaint, delCustomComplaint, exportCustomComplaint }
